package com.sunqianhu.design_patterns_23.behavioral.observer;

public class Client {
    public static void main(String[] args) {
        Weather weather = new Weather();
        ConcreteObserver observer1 = new ConcreteObserver();
        ConcreteObserver observer2 = new ConcreteObserver();
        weather.registerObserver(observer1);
        weather.registerObserver(observer2);
        weather.setTemperature(40);
    }
}
